package com.tang.book.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 图书借阅
 * @TableName user_book
 */
@TableName(value ="user_book")
@Data
public class UserBook implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 图书 id
     */
    @TableField(value = "bookId")
    private Long bookId;

    /**
     * 用户 id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 借阅时间
     */
    @TableField(value = "borrowTime")
    private Date borrowTime;

    /**
     * 归还时间
     */
    @TableField(value = "returnTime")
    private Date returnTime;

    /**
     * 
     */
    @TableField(value = "isDeleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}